home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960209-19960425 / 000383_news@columbia.edu _Wed Apr 10 11:40:45 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id LAA14236 for <kermit.misc@watsun>; Wed, 10 Apr 1996 11:40:44 -0400 (EDT)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id LAA24802 for kermit.misc@watsun; Wed, 10 Apr 1996 11:40:38 -0400 (EDT)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: HELP: need return status of system command
  8. Date: 10 Apr 1996 15:40:29 GMT
  9. Organization: Columbia University
  10. Lines: 23
  11. Distribution: usa
  12. Message-ID: <4kgkpd$o6t@apakabar.cc.columbia.edu>
  13. References: <4kek2k$918@louie.udel.edu>
  14. NNTP-Posting-Host: watsun.cc.columbia.edu
  15.  
  16. In article <4kek2k$918@louie.udel.edu>,
  17. Jason D. Kelleher <kelleher@itchy.ee.udel.edu> wrote:
  18. :     Ok, here's my problem.  After I download a data file with I need to
  19. : verify that it is complete.  The data file has a trailer, so I tried
  20. : the following:
  21. :     # Check the validity of the file.
  22. :     run grep -s "TRAILER: \v(ndate)" \%f
  23. :     xif success {echo \%f appears valid.} -
  24. :     else {echo Error: \%f appears invalid., goto error}
  25. :     The xif seems to just test if the "run" succeeded.  I want the
  26. : return status of the grep.  Any suggestions?  Hopefully someone can
  27. : tell me if this is possible, the manual leaves a bit to be desired when
  28. : discussing the "run" command.  (Or, the run command leaves a bit to be
  29. : desired...  :)
  30. This did not work in C-Kermit 5A(190) and earlier.  Version 5B(192), now
  31. under development, fixes the problem, at least in most operating systems
  32. (including UNIX).
  33.  
  34. - Frank